package com.atguigu07.equals.apply;

/**
 * ClassName: CustomerTest
 * Package: com.atguigu07.apply
 * Description:
 *
 * @Author ZY
 * @Create 21:23
 * @Version 1.0
 */
public class CustomerTest {

    public static void main(String[] args) {

        Customer c1 = new Customer("tom",12,new Account(2000));
        Customer c2 = new Customer("tom",12,new Account(2000));

        System.out.println(c1.equals(c2));//false --> true（Account和Customer同时通过IDEA自动重写了equals()）


    }



}
